package ru.mipt.akinator.ejb;

import ru.mipt.akinator.entities.Item;
import ru.mipt.akinator.entities.Question;

import javax.ejb.Local;
import java.util.Set;

@Local
public interface Asker {
    void init();

    Question getQuestion();

    /**
     * answer and switch to next question
     *
     * @param answer answer to question
     */
    void answer(String answer);

    /**
     * @return confidence in percents
     */
    int getConfidence();

    Item getPossibleItem();
    Item getAllPossibleItem();

    /**
     * confirm to prediction or set rigth item and switch to next
     * @param itemName
     */
    void setRightItem(String itemName);
}
